/**
 * 基础数据类接口
 */
let basic = (vm) => {
	return {
		// 获取配置信息
		getSite: (params = {}) => {
			return vm.$u.get('common/getSite', params)
		},
		getVersion: (params = {}) => {
			return vm.$u.get('common/getVersion', params)
		},
		// 获取身份信息
		getIdentityList: (params = {}) => {
			return vm.$u.get('identity/identity/getIdentity', params)
		},
		// 获取分类选择列表
		getActionSheetList: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.get('basic/getActionSheetList', params)
		},
		//用户所有的发布量决定是否弹出活动窗
		activity_tan: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.get('basic/activity_tan', params)
		},
		// 获取分类默认值
		getActionSheet: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.get('basic/getActionSheet', params)
		},
		// 获取城市选择列表
		getSelectCityList: (params = {}) => {
			return vm.$u.get('basic/getSelectCityList', params)
		},
		// 获取城市选择列表查询
		getSearchCity: (params = {}) => {
			return vm.$u.get('basic/getSearchCity', params)

		},
		// 获取分类列表
		getCategoryList: (params = {}) => {
			return vm.$u.get('basic/getCategoryList', params)
		},
		//获取广告视屏列表
		getAdList: (params = {}) => {
			return vm.$u.get('/common/getAdList', params)
		},
		//图标认证
		getIconList: (params = {}) => {
			return vm.$u.get('/basic/getIconList', params)
		},
		//留言板
		getLiuyan: (params = {}) => {
			params.needLogin = true
            return vm.$u.get('/basic/getLiuyan', params)
        },
		//操作留言
		operateLiuyan: (params = {}) => {
			params.needLogin = true
            return vm.$u.get('/basic/operateLiuyan', params)
        },

		//结束留言
		endLiuyan:(params = {}) => {
			params.needLogin = true
		    return vm.$u.post('basic/endLiuyan', params)
		},
		//我的留言板
		my_Liuyan: (params = {}) => {
			return vm.$u.get('/basic/my_Liuyan', params)
		},
		//查看留言
		query_Liuyan: (params = {}) => {
			return vm.$u.get('/basic/query_Liuyan', params)
		},
		//已受理留言
		yishouli: (params = {}) => {
			return vm.$u.get('/basic/yishouli', params)
		},
		//未读数量
		weidu_count: (params = {}) => {
			return vm.$u.get('/basic/weidu_count', params)
		},
		//获取地区数据
		getAreaDatas: (params = {}) => {
			return vm.$u.get('/common/getArea', params)
		},
		//获取身份分类信息
		getIdentityCategory: (params = {}) => {
			return vm.$u.get('/basic/getIdentityCategory', params)
		},
		//获取身份运输方式信息
		getIdentityTransport: (params = {}) => {
			return vm.$u.get('/basic/getIdentityTransport', params)
		},
		//关于我们，用户服务协议
		getContentData: (params = {}) => {
			return vm.$u.get('/basic/getContentData', params)
		},
		// 首页icon
		getHomeIcon: (params = {}) => {
			return vm.$u.get('/basic/getHomeIcon', params)
		},

		// 获取新通知列表拒绝
		getNewrefuse: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/refuse', params)
		},

        //图标认证
        getIconList: (params = {}) => {
            return vm.$u.get('/basic/getIconList', params)
        },
        //获取地区数据
        getAreaDatas: (params = {}) => {
            return vm.$u.get('/common/getArea', params)
        },
        //获取身份分类信息
        getIdentityCategory: (params = {}) => {
            return vm.$u.get('/basic/getIdentityCategory', params)
        },
        //获取身份运输方式信息
        getIdentityTransport: (params = {}) => {
            return vm.$u.get('/basic/getIdentityTransport', params)
        },
        //关于我们，用户服务协议
        getContentData: (params = {}) => {
            return vm.$u.get('/basic/getContentData', params)
        },
        // 首页icon
        getHomeIcon: (params = {}) => {
            return vm.$u.get('/basic/getHomeIcon', params)
        },
		// 获取通知列表
		getNewNoticeList: (params = {}) => {
		    params.needLogin = true
		    return vm.$u.get('/basic/notice_list', params)
		},
        // 获取通知列表
        getNoticeList: (params = {}) => {
            params.needLogin = true
            return vm.$u.get('/basic/getNoticeList', params)
        },
        // 获取通知列表详情
        getNoticeDetail: (params = {}) => {
            params.needLogin = true
            return vm.$u.get('/basic/getNoticeDetail', params)
        },

        // 获取用户未读消息数
        getNoticeNum:(params = {}) => {
            params.needLogin = true
            return vm.$u.get('/basic/getNoticeNum', params)
        },
        // 获取页面弹窗
        getPopup:(params = {}) => {
            params.needLogin = true
            return vm.$u.get('/basic/getPopup', params)
        },
        //  俄罗斯用户是否显示分享弹窗
        getRussiaReleaseNum:(params = {}) => {
            params.needLogin = true
            return vm.$u.get('/basic/getRussiaReleaseNum', params)
        },
        // 获取推广员信息
        getAgentInfo:(params = {}) => {
            return vm.$u.post('basic/getAgentInfo', params)
        },
		// 不敢兴趣
		setRefuse:(params = {}) => {
		    return vm.$u.post('basic/refuse', params)
		},
        // 绑定
        bindAgent:(params = {}) => {
            return vm.$u.post('basic/bindAgent', params)
        },
		// 计量单位list
		getUnitList:(params = {}) => {
            params.needLogin = true
		    return vm.$u.get('basic/getUnitList', params)
		},
		
		// genUserSig
		genUserSig:(params = {}) => {
		    return vm.$u.post('TLSSigAPIv2/genUserSig', params)
		},
		
		// huansuan
		huansuan:(params = {}) => {
		    return vm.$u.post('basic/huansuan', params)
		},
		

		// 获取通知列表
		getNoticeList: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/getNoticeList', params)
		},

		// 获取通知列表详情
		getNoticeDetail: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/getNoticeDetail', params)
		},

		// 获取用户未读消息数
		getNoticeNum: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/getNoticeNum', params)
		},
		// 获取页面弹窗
		getPopup: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/getPopup', params)
		},
		//  俄罗斯用户是否显示分享弹窗
		getRussiaReleaseNum: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('/basic/getRussiaReleaseNum', params)
		},
		// 获取推广员信息
		getAgentInfo: (params = {}) => {
			return vm.$u.post('basic/getAgentInfo', params)
		},
		// 绑定
		bindAgent: (params = {}) => {
			return vm.$u.post('basic/bindAgent', params)
		},
		// 计量单位list
		getUnitList: (params = {}) => {
			params.needLogin = true
			return vm.$u.get('basic/getUnitList', params)
		},

		// genUserSig
		genUserSig: (params = {}) => {
			return vm.$u.post('TLSSigAPIv2/genUserSig', params)
		},

		// huansuan
		huansuan: (params = {}) => {
			return vm.$u.post('basic/huansuan', params)
		},

		// 任务需求
		taskRequirements: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('ElectricSales/taskRequirements', params)
		},

		//码表类型
		cate: (params = {}) => {
			params.needLogin = true

			return vm.$u.post('crontab/cate', params)
		},
		//多语言帮助评价
		evaluate: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('crontab/message_evaluate', params)
		},

		//货代工作台
		forwarder_work: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('transport/forwarder_work', params)
		},
		//货代-仓库列表
		warehouse: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/index', params)
		},
		//货代-仓库-添加/编辑
		warehouseSave: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/save', params)
		},
		//货代-仓库-删除
		warehouseDel: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/del', params)
		},

		//货代-货位-添加/编辑
		storage_save: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/storage_save', params)
		},
		//货代-货位-列表
		storage_lists: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/storage_lists', params)
		},
		//货代-货位-列表
		storage_del: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/storage_del', params)
		},
		//货代-出入库-添加
		stock_save: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/stock_save', params)
		},

		//货代-入库列表
		stock_lists: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/stock_lists', params)
		},
		//货代-补货
		stock_append: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/stock_append', params)
		},
		//货代-删除主记录
		stock_del: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/stock_del', params)
		},
		//货代-子记录列表
		stock_lists_child: (params = {}) => {
			params.needLogin = true
			return vm.$u.post('warehouse/stock_lists_child', params)
		},

	}

}

// 抛出当前模块
export default basic